$("#loadgame_submit").click(function(){
	if($("input[name='s2']").val == '')
	{
		alert("请选择区服");
		return false;
	}
	if($("input[name='reason']").val == '')
	{
		alert("请填写理由");
		return false;
	}
	formdata = $("#loadgame_form").serialize();
	$.ajax({type: "POST",url: "/user/loadgame",dataType: "json",data:formdata,success:function(data){
		if(data.statusCode == 200)
		{
			alert(data.message);
			$("#gamelink").html('<a href="'+data.redirect_link+'" style="color:blue;" target="_blank">进入游戏</a>');
		}
		else
		{
			alert(data.message);
		}
	}
	});
});